Method: CommandMapper::Command#[]
- Defined in:
- lib/command_mapper/command.rb
#[](name) ⇒ Object
Gets the value of an option or an argument.
631 632 633 634 635 636 637 638 639 |
# File 'lib/command_mapper/command.rb', line 631 def [](name) name = name.to_s if respond_to?(name) send(name) else raise(ArgumentError,"#{self.class} does not define ##{name}") end end |